<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Encore\Admin\Traits\AdminBuilder;

class Student_attendance extends Model
{
    //考勤周期配置模型
	public $timestamps = false;
    //
    protected $fillable = [
        'squad_id','student_id','attendance_cycle_id','class_period', 'attendance_start_date', 'attendance_end_date','classroom_id','attendance_status'
    ];

    public function student(){
    	return $this->belongsTo(Student::class);
    }
    public function attendance_cycle(){
    	return $this->belongsTo(Attendance_cycle::class);
    }
    public function classroom(){
    	return $this->belongsTo(Classroom::class);
    }
}
